aboutsummaryrefslogtreecommitdiff
path: root/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenSwitchTests]/[method:canGenerateCodeForSwitchWithSingleResult(org.shedlang.compiler.testin...
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-12-20 17:07:02 +0000
committerMichael Williamson <mike@zwobble.org>2023-12-20 17:08:49 +0000
commitfc115476216f364d947804cce2202b428d8afd6f (patch)
treeaa106a2639d127486d90cc40170bae3a7b30a221 /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenSwitchTests]/[method:canGenerateCodeForSwitchWithSingleResult(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
parentc4b8cef3e2cc580f9f74dfdfb061d8d6dd49ca0f (diff)
Rename PatioCodeGen to ShidToPatio
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenSwitchTests]/[method:canGenerateCodeForSwitchWithSingleResult(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
-rw-r--r--snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenSwitchTests]/[method:canGenerateCodeForSwitchWithSingleResult(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected82
1 files changed, 0 insertions, 82 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenSwitchTests]/[method:canGenerateCodeForSwitchWithSingleResult(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenSwitchTests]/[method:canGenerateCodeForSwitchWithSingleResult(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
deleted file mode 100644
index 0c51dc6c..00000000
--- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenSwitchTests]/[method:canGenerateCodeForSwitchWithSingleResult(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
+++ /dev/null
@@ -1,82 +0,0 @@
-Compilation unit elements:
-
-(
- function-decl
- "shed__runtime__int_create"
- params=((param "value" int))
- return-type=int
-)
-(
- function-decl
- "shed__runtime__int_add"
- params=((param "left" int) (param "right" int))
- return-type=int
-)
-
-Locals:
- * (val "tmp__0" int)
- * (val "switchTag__0" int)
- * (val "structValuePointer__0" data-ptr)
- * (val "int__0" int)
- * (val "int__1" int)
- * (val "binaryOpResult__0" int)
- * (val "int__2" int)
- * (val "int__3" int)
- * (val "binaryOpResult__1" int)
-
-Instructions:
-
-(
- (int-to-data-ptr (local "structValuePointer__0") (local "condition"))
- (
- memory-load
- (local "switchTag__0")
- pointer=(local "structValuePointer__0")
- layout=(struct ((struct (data-ptr int int int)) (struct (int))))
- offset=(1 0)
- )
- (
- switch
- ((local "tmp__0"))
- (local "switchTag__0")
- (
- (
- case
- 0
- (
- block
- (
- (call (local "int__0") "shed__runtime__int_create" ((int 1)))
- (call (local "int__1") "shed__runtime__int_create" ((int 2)))
- (call (local "binaryOpResult__0") "shed__runtime__int_add" ((local "int__0") (local "int__1")))
- )
- results=((local "binaryOpResult__0"))
- )
- )
- (
- case
- 1
- (
- block
- (
- (call (local "int__2") "shed__runtime__int_create" ((int 101)))
- (call (local "int__3") "shed__runtime__int_create" ((int 102)))
- (call (local "binaryOpResult__1") "shed__runtime__int_add" ((local "int__2") (local "int__3")))
- )
- results=((local "binaryOpResult__1"))
- )
- )
- )
- (
- block
- (
- (unreachable)
- )
- results=()
- )
- )
-)
-
-Temporary stack:
- * PatioLocalRef[name=tmp__0]
- * PatioLocalRef[name=other]